package com.struggle.controller.config;

import com.struggle.common.ExchangeConstants;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className TopicRabbitConfig
 * @Description 主题模式生成者配置类
 * @Author liuwj3
 * @Date 2019/10/12 0012 下午 3:21
 **/
@Configuration
public class TopicRabbitConfig {
    @Bean
    TopicExchange getTopicExchange() {
        return new TopicExchange(ExchangeConstants.TOPIC_EXCHANGE);
    }
}
